<table cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td colspan="3">PROFIL <? if ($this->sess->alumniid == @$alumni->alumniparentid) { ?><a href="<?= base_url() . "kerabat/edit/" . @$alumni->alumniid ?>" style="float: right;">Edit</a><? } ?></td>
    </tr>
    <tr>
        <td rowspan="7">FOTO</td>
        <td>Nama</td>
        <td><?= @$alumni->alumninama ?></td>
    </tr>
    <tr>
        <td>Jenis Kelamin</td>
        <td><?= @$alumni->alumnijenkel == "L" ? "Laki-laki" : "Perempuan" ?></td>
    </tr>
    <tr>
        <td>Status</td>
        <td><?= @$alumni->alumnistatus ?></td>
    </tr>
    <tr>
        <td>Alamat Domisili</td>
        <td>
            <?= @$alumni->alumnialamatdomisili ?><br/>
            <?= @$alumni->kotadomisili ?><br/>
            <?= @$alumni->propinsidomisili ?><br/>
        </td>
    </tr>
    <tr>
        <td>Kontak</td>
        <td><?= @$alumni->alumnicontact ?></td>
    </tr>
    <tr>
        <td>Email</td>
        <td><?= @$alumni->alumniemail ?></td>
    </tr>
    <tr>
        <td><?=  ucfirst(strtolower(@$alumni->alumnitype))?> dari</td>
        <td><?= @$alumni->kerabatnama . " (" . getAngkatanName(@$alumni->kerabatangkatan) . ")" ?></td>
    </tr>
</table>
<hr/>
<table cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td colspan="5">PEKERJAAN <? if ($this->sess->alumniid == @$alumni->alumniparentid) echo '<a href="' . base_url() . 'kerabat/work/'. $alumni->alumniid .'" style="float: right;">Tambah</a>'; ?></td>
    </tr>
    <tr>
        <th>Perusahaan</th>
        <th>Bagian</th>
        <th>Jabatan</th>
        <th>Dari Tahun</th>
        <th>Sampai Tahun</th>
        <? if (@$this->sess->alumniid == @$alumni->alumniid) echo "<th></th>"; ?>
    </tr>
    <? if (@$kantor) foreach (@$kantor as $k => $v) { ?>
            <tr>
                <td><?= @$v->kantornama ?></td>
                <td><?= @$v->bagian ?></td>
                <td><?= @$v->jabatan ?></td>
                <td><?= @$v->daritahun ?></td>
                <td><?= @$v->sampaitahun == "-" ? "Sekarang" : $v->sampaitahun ?></td>
            <? if (@$this->sess->alumniid == @$alumni->alumniparentid) echo '<td><a href="' . base_url() . 'kerabat/workedit/' . $alumni->alumniid . "/" . $v->alumnikantorid . '">edit</a></td>'; ?>
            </tr>
    <? } ?>
</table>
<hr/>
<table cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td colspan="5">BISNIS <? if (@$this->sess->alumniid == @$alumni->alumniparentid) echo '<a href="' . base_url() . 'profile/addkerabat/'. $alumni->alumniid .'" style="float: right;">Tambah</a>'; ?></td>
    </tr>
    <tr>
        <th>Nama</th>
        <th>Alamat</th>
        <th>Kontak</th>
        <th>Email</th>
        <th>Jenkel</th>
        <th>Hubungan</th>
        <th></th>
    </tr>
<? if(@$bisnis) foreach (@$bisnis as $k => $v) { ?>
        <tr>
            <td><?= @$v->alumninama ?></td>
            <td><?= @$v->alumnialamatdomisili . ", " . @$v->kotadomisili . ", " . @$v->propinsidomisili ?></td>
            <td><?= @$v->alumnicontact ?></td>
            <td><?= @$v->alumniemail ?></td>
            <td><?= @$v->alumnijenkel ?></td>
            <td><?= ucfirst(strtolower(@$v->alumnitype)) ?></td>
            <td><a href="<?= base_url() ?>kerabat/detail/<?= @$v->alumniid ?>">Detail</a></td>
        </tr>
<? } ?>
</table>